package org.cerberus.platform.components;

import javax.swing.ImageIcon;

import org.cerberus.platform.component.annotations.PAttribute;
import org.cerberus.platform.component.annotations.FetchType;
import org.cerberus.platform.component.annotations.PComponent;

@PComponent(classID="PIcon")
public class PIcon {

	@PAttribute(fetch=FetchType.BINARY)
	private ImageIcon icon;
	
	//TODO do not use image icon
	public PIcon(ImageIcon icon) {
		this.icon = icon;
	}

	public ImageIcon getIcon() {
		return icon;
	}

}
